home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / TransSkel 3.11.sit / TransSkel v 3.11 / Convenience / Positioning Stuff / SkelGetRefRect.c < prev    next >
MacBinary  |  1994-02-19  |  2.6 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Feb 19 22:25:16 1994, modified Sat Feb 19 22:25:16 1994, creator Think C, type ASCII, 1771 bytes "SkelGetRefRect.c" , at 0x76b 704 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 53 6b 65 6c 47 65 | 74 52 65 66 52 65 63 74 |..SkelGe|tRefRect|
|00000010| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 06 eb 00 | 00 02 c0 a9 8c 88 9c a9 |........|........|
|00000060| 8c 88 9c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ce 5b 00 00 |........|.....[..|
|00000080| 2f 2a 0d 20 2a 20 47 65 | 74 20 61 20 72 65 66 65 |/*. * Ge|t a refe|
|00000090| 72 65 6e 63 65 20 72 65 | 63 74 61 6e 67 6c 65 20 |rence re|ctangle |
|000000a0| 66 6f 72 20 77 69 6e 64 | 6f 77 20 70 6f 73 69 74 |for wind|ow posit|
|000000b0| 69 6f 6e 69 6e 67 2e 0d | 20 2a 0d 20 2a 20 52 65 |ioning..| *. * Re|
|000000c0| 66 65 72 65 6e 63 65 20 | 72 65 63 74 20 66 6f 72 |ference |rect for|
|000000d0| 20 70 6f 73 69 74 69 6f | 6e 20 74 79 70 65 73 3a | positio|n types:|
|000000e0| 0d 20 2a 09 73 6b 65 6c | 50 6f 73 69 74 69 6f 6e |. *.skel|Position|
|000000f0| 4e 6f 6e 65 20 2d 2d 20 | 6e 6f 20 72 65 66 65 72 |None -- |no refer|
|00000100| 65 6e 63 65 20 72 65 63 | 74 0d 20 2a 09 73 6b 65 |ence rec|t. *.ske|
|00000110| 6c 50 6f 73 69 74 69 6f | 6e 4f 6e 4d 61 69 6e 44 |lPositio|nOnMainD|
|00000120| 65 76 69 63 65 20 2d 2d | 20 75 73 61 62 6c 65 20 |evice --| usable |
|00000130| 61 72 65 61 20 6f 6e 20 | 6d 61 69 6e 20 64 65 76 |area on |main dev|
|00000140| 69 63 65 0d 20 2a 09 73 | 6b 65 6c 50 6f 73 69 74 |ice. *.s|kelPosit|
|00000150| 69 6f 6e 4f 6e 50 61 72 | 65 6e 74 57 69 6e 64 6f |ionOnPar|entWindo|
|00000160| 77 20 2d 2d 20 63 6f 6e | 74 65 6e 74 20 72 65 63 |w -- con|tent rec|
|00000170| 74 20 6f 66 20 66 72 6f | 6e 74 6d 6f 73 74 20 76 |t of fro|ntmost v|
|00000180| 69 73 69 62 6c 65 20 77 | 69 6e 64 6f 77 0d 20 2a |isible w|indow. *|
|00000190| 09 73 6b 65 6c 50 6f 73 | 69 74 69 6f 6e 4f 6e 50 |.skelPos|itionOnP|
|000001a0| 61 72 65 6e 74 44 65 76 | 69 63 65 20 2d 2d 20 75 |arentDev|ice -- u|
|000001b0| 73 61 62 6c 65 20 61 72 | 65 61 20 6f 6e 20 73 63 |sable ar|ea on sc|
|000001c0| 72 65 65 6e 20 6f 66 20 | 66 72 6f 6e 74 6d 6f 73 |reen of |frontmos|
|000001d0| 74 20 76 69 73 69 62 6c | 65 20 77 69 6e 64 6f 77 |t visibl|e window|
|000001e0| 0d 20 2a 0d 20 2a 20 49 | 66 20 74 68 65 72 65 27 |. *. * I|f there'|
|000001f0| 73 20 6e 6f 20 66 72 6f | 6e 74 6d 6f 73 74 20 77 |s no fro|ntmost w|
|00000200| 69 6e 64 6f 77 2c 20 70 | 6f 73 69 74 69 6f 6e 73 |indow, p|ositions|
|00000210| 20 74 68 61 74 20 75 73 | 65 20 69 74 20 64 65 66 | that us|e it def|
|00000220| 61 75 6c 74 20 74 6f 0d | 20 2a 20 73 6b 65 6c 50 |ault to.| * skelP|
|00000230| 6f 73 69 74 69 6f 6e 4f | 6e 4d 61 69 6e 44 65 76 |ositionO|nMainDev|
|00000240| 69 63 65 2e 0d 20 2a 0d | 20 2a 20 52 65 73 75 6c |ice.. *.| * Resul|
|00000250| 74 20 66 6f 72 20 70 6f | 73 69 74 69 6f 6e 20 73 |t for po|sition s|
|00000260| 6b 65 6c 50 6f 73 69 74 | 69 6f 6e 4e 6f 6e 65 20 |kelPosit|ionNone |
|00000270| 69 73 20 73 61 6d 65 20 | 61 73 20 66 6f 72 20 73 |is same |as for s|
|00000280| 6b 65 6c 50 6f 73 69 74 | 69 6f 6e 4f 6e 4d 61 69 |kelPosit|ionOnMai|
|00000290| 6e 44 65 76 69 63 65 0d | 20 2a 20 6a 75 73 74 20 |nDevice.| * just |
|000002a0| 73 6f 20 74 68 61 74 20 | 72 65 73 75 6c 74 20 69 |so that |result i|
|000002b0| 73 6e 27 74 20 75 6e 64 | 65 66 69 6e 65 64 2c 20 |sn't und|efined, |
|000002c0| 62 75 74 20 63 61 6c 6c | 65 72 20 77 6f 75 6c 64 |but call|er would|
|000002d0| 20 62 65 20 62 65 74 74 | 65 72 20 6f 66 66 20 74 | be bett|er off t|
|000002e0| 6f 20 68 61 6e 64 6c 65 | 0d 20 2a 20 73 6b 65 6c |o handle|. * skel|
|000002f0| 50 6f 73 69 74 69 6f 6e | 4e 6f 6e 65 20 63 61 73 |Position|None cas|
|00000300| 65 20 69 74 73 65 6c 66 | 2e 0d 20 2a 0d 20 2a 20 |e itself|.. *. * |
|00000310| 31 38 20 46 65 62 20 39 | 34 0d 20 2a 20 2d 20 52 |18 Feb 9|4. * - R|
|00000320| 65 74 75 72 6e 20 73 74 | 72 75 63 74 75 72 65 20 |eturn st|ructure |
|00000330| 72 65 63 74 20 72 61 74 | 68 65 72 20 74 68 61 6e |rect rat|her than|
|00000340| 20 63 6f 6e 74 65 6e 74 | 20 72 65 63 74 20 6f 66 | content| rect of|
|00000350| 20 70 61 72 65 6e 74 20 | 77 69 6e 64 6f 77 20 77 | parent |window w|
|00000360| 68 65 6e 0d 20 2a 20 70 | 6f 73 69 74 69 6f 6e 20 |hen. * p|osition |
|00000370| 74 79 70 65 20 69 73 20 | 73 6b 65 6c 50 6f 73 69 |type is |skelPosi|
|00000380| 74 69 6f 6e 4f 6e 50 61 | 72 65 6e 74 57 69 6e 64 |tionOnPa|rentWind|
|00000390| 6f 77 2e 0d 20 2a 2f 0d | 0d 23 20 69 6e 63 6c 75 |ow.. */.|.# inclu|
|000003a0| 64 65 09 22 54 72 61 6e | 73 53 6b 65 6c 2e 68 22 |de."Tran|sSkel.h"|
|000003b0| 0d 0d 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 0d 53 |...pasca|l void.S|
|000003c0| 6b 65 6c 47 65 74 52 65 | 66 65 72 65 6e 63 65 52 |kelGetRe|ferenceR|
|000003d0| 65 63 74 20 28 52 65 63 | 74 20 2a 72 2c 20 73 68 |ect (Rec|t *r, sh|
|000003e0| 6f 72 74 20 70 6f 73 69 | 74 69 6f 6e 54 79 70 65 |ort posi|tionType|
|000003f0| 29 0d 7b 0d 57 69 6e 64 | 6f 77 50 74 72 09 66 72 |).{.Wind|owPtr.fr|
|00000400| 6f 6e 74 57 69 6e 64 20 | 3d 20 46 72 6f 6e 74 57 |ontWind |= FrontW|
|00000410| 69 6e 64 6f 77 20 28 29 | 3b 0d 47 72 61 66 50 74 |indow ()|;.GrafPt|
|00000420| 72 09 74 6d 70 50 6f 72 | 74 3b 0d 52 65 63 74 09 |r.tmpPor|t;.Rect.|
|00000430| 66 6c 6f 61 74 52 65 63 | 74 2c 20 72 65 66 52 65 |floatRec|t, refRe|
|00000440| 63 74 3b 0d 0d 09 2f 2a | 0d 09 20 2a 20 41 73 73 |ct;.../*|.. * Ass|
|00000450| 75 6d 65 20 64 65 66 61 | 75 6c 74 20 70 6f 73 69 |ume defa|ult posi|
|00000460| 74 69 6f 6e 69 6e 67 20 | 77 69 6c 6c 20 62 65 20 |tioning |will be |
|00000470| 77 69 74 68 20 72 65 66 | 65 72 65 6e 63 65 20 74 |with ref|erence t|
|00000480| 6f 20 6d 61 69 6e 20 64 | 65 76 69 63 65 2e 0d 09 |o main d|evice...|
|00000490| 20 2a 20 54 68 69 73 20 | 77 69 6c 6c 20 61 6c 73 | * This |will als|
|000004a0| 6f 20 62 65 20 75 73 65 | 64 20 61 73 20 74 68 65 |o be use|d as the|
|000004b0| 20 66 61 6c 6c 62 61 63 | 6b 20 66 6f 72 20 70 6f | fallbac|k for po|
|000004c0| 73 69 74 69 6f 6e 69 6e | 67 73 20 74 68 61 74 20 |sitionin|gs that |
|000004d0| 75 73 65 0d 09 20 2a 20 | 46 72 6f 6e 74 57 69 6e |use.. * |FrontWin|
|000004e0| 64 6f 77 28 29 20 69 66 | 20 46 72 6f 6e 74 57 69 |dow() if| FrontWi|
|000004f0| 6e 64 6f 77 28 29 20 69 | 73 20 6e 69 6c 2e 0d 09 |ndow() i|s nil...|
|00000500| 20 2a 2f 0d 0d 09 53 6b | 65 6c 47 65 74 4d 61 69 | */...Sk|elGetMai|
|00000510| 6e 44 65 76 69 63 65 52 | 65 63 74 20 28 72 29 3b |nDeviceR|ect (r);|
|00000520| 0d 0d 09 69 66 20 28 70 | 6f 73 69 74 69 6f 6e 54 |...if (p|ositionT|
|00000530| 79 70 65 20 3d 3d 20 73 | 6b 65 6c 50 6f 73 69 74 |ype == s|kelPosit|
|00000540| 69 6f 6e 4e 6f 6e 65 29 | 09 2f 2a 20 6c 65 61 76 |ionNone)|./* leav|
|00000550| 65 20 77 69 6e 64 6f 77 | 20 61 73 20 69 73 20 2a |e window| as is *|
|00000560| 2f 0d 09 09 72 65 74 75 | 72 6e 3b 0d 0d 09 2f 2a |/...retu|rn;.../*|
|00000570| 0d 09 20 2a 20 46 69 6e | 64 20 66 72 6f 6e 74 6d |.. * Fin|d frontm|
|00000580| 6f 73 74 20 76 69 73 69 | 62 6c 65 20 77 69 6e 64 |ost visi|ble wind|
|00000590| 6f 77 0d 09 20 2a 2f 0d | 09 66 72 6f 6e 74 57 69 |ow.. */.|.frontWi|
|000005a0| 6e 64 20 3d 20 46 72 6f | 6e 74 57 69 6e 64 6f 77 |nd = Fro|ntWindow|
|000005b0| 20 28 29 3b 0d 09 77 68 | 69 6c 65 20 28 66 72 6f | ();..wh|ile (fro|
|000005c0| 6e 74 57 69 6e 64 20 21 | 3d 20 28 57 69 6e 64 6f |ntWind !|= (Windo|
|000005d0| 77 50 74 72 29 20 6e 69 | 6c 20 26 26 20 21 28 28 |wPtr) ni|l && !((|
|000005e0| 57 69 6e 64 6f 77 50 65 | 65 6b 29 20 66 72 6f 6e |WindowPe|ek) fron|
|000005f0| 74 57 69 6e 64 29 2d 3e | 76 69 73 69 62 6c 65 29 |tWind)->|visible)|
|00000600| 0d 09 09 66 72 6f 6e 74 | 57 69 6e 64 20 3d 20 28 |...front|Wind = (|
|00000610| 57 69 6e 64 6f 77 50 74 | 72 29 20 28 28 57 69 6e |WindowPt|r) ((Win|
|00000620| 64 6f 77 50 65 65 6b 29 | 20 66 72 6f 6e 74 57 69 |dowPeek)| frontWi|
|00000630| 6e 64 29 2d 3e 6e 65 78 | 74 57 69 6e 64 6f 77 3b |nd)->nex|tWindow;|
|00000640| 0d 0d 09 73 77 69 74 63 | 68 20 28 70 6f 73 69 74 |...switc|h (posit|
|00000650| 69 6f 6e 54 79 70 65 29 | 0d 09 7b 0d 09 63 61 73 |ionType)|..{..cas|
|00000660| 65 20 73 6b 65 6c 50 6f | 73 69 74 69 6f 6e 4f 6e |e skelPo|sitionOn|
|00000670| 50 61 72 65 6e 74 57 69 | 6e 64 6f 77 3a 0d 09 09 |ParentWi|ndow:...|
|00000680| 69 66 20 28 66 72 6f 6e | 74 57 69 6e 64 20 21 3d |if (fron|tWind !=|
|00000690| 20 28 57 69 6e 64 6f 77 | 50 74 72 29 20 6e 69 6c | (Window|Ptr) nil|
|000006a0| 29 0d 09 09 09 53 6b 65 | 6c 47 65 74 57 69 6e 64 |)....Ske|lGetWind|
|000006b0| 53 74 72 75 63 74 75 72 | 65 52 65 63 74 20 28 66 |Structur|eRect (f|
|000006c0| 72 6f 6e 74 57 69 6e 64 | 2c 20 72 29 3b 0d 09 09 |rontWind|, r);...|
|000006d0| 62 72 65 61 6b 3b 0d 09 | 63 61 73 65 20 73 6b 65 |break;..|case ske|
|000006e0| 6c 50 6f 73 69 74 69 6f | 6e 4f 6e 50 61 72 65 6e |lPositio|nOnParen|
|000006f0| 74 44 65 76 69 63 65 3a | 0d 09 09 69 66 20 28 66 |tDevice:|...if (f|
|00000700| 72 6f 6e 74 57 69 6e 64 | 20 21 3d 20 28 57 69 6e |rontWind| != (Win|
|00000710| 64 6f 77 50 74 72 29 20 | 6e 69 6c 29 0d 09 09 09 |dowPtr) |nil)....|
|00000720| 28 76 6f 69 64 29 20 53 | 6b 65 6c 47 65 74 57 69 |(void) S|kelGetWi|
|00000730| 6e 64 6f 77 44 65 76 69 | 63 65 20 28 66 72 6f 6e |ndowDevi|ce (fron|
|00000740| 74 57 69 6e 64 2c 20 28 | 47 44 48 61 6e 64 6c 65 |tWind, (|GDHandle|
|00000750| 20 2a 29 20 6e 69 6c 2c | 20 72 29 3b 0d 09 09 62 | *) nil,| r);...b|
|00000760| 72 65 61 6b 3b 0d 09 7d | 0d 7d 0d 00 00 00 00 00 |reak;..}|.}......|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 01 00 00 00 02 7a | 00 00 01 7a 00 00 00 46 |.......z|...z...F|
|00000790| 2c 60 2f 60 17 44 ea 5e | 7a e6 0d 16 56 23 39 16 |,`/`.D.^|z...V#9.|
|000007a0| 6d 7c f8 2c 16 6f ea f8 | 3b 5f 02 0c 17 44 80 13 |m|.,.o..|;_...D..|
|000007b0| 10 53 6b 65 6c 47 65 74 | 52 65 66 52 65 63 74 2e |.SkelGet|RefRect.|
|000007c0| 63 65 02 00 00 00 50 61 | 72 74 53 49 54 78 00 00 |ce....Pa|rtSITx..|
|000007d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 a9 9f 75 92 00 00 | 00 00 00 00 02 c0 50 5f |....u...|......P_|
|00000800| 41 57 e2 b8 0a f7 06 5f | 4e 41 5f 42 49 e2 c3 b0 |AW....._|NA_BI...|
|00000810| 67 f7 06 5f 4c 50 5f 57 | 48 e2 c6 61 b0 5b f7 06 |g.._LP_W|H..a.[..|
|00000820| 5f 43 54 5f 44 49 e2 b8 | 14 f7 06 5f 54 35 5f 44 |_CT_DI..|..._T5_D|
|00000830| 43 e2 7f b8 08 f7 06 5f | 54 55 7e 0e c6 68 b0 39 |C......_|TU~..h.9|
|00000840| f7 06 5f 4f 53 5f 47 4c | e2 c6 62 b0 2c f7 06 5f |.._OS_GL|..b.,.._|
|00000850| 45 54 5f 57 53 e2 c6 69 | b0 1f f7 06 5f 54 44 5f |ET_WS..i|...._TD_|
|00000860| 53 49 e2 b8 11 f7 06 5f | 49 43 7e 8f b8 08 f7 06 |SI....._|IC~.....|
|00000870| 5f 45 43 7e 98 c3 60 b5 | 67 2f 16 6f 15 90 15 12 |_EC~..`.|g/.o....|
|00000880| 00 00 01 52 00 28 00 1e | 02 21 01 3c 00 18 00 00 |...R.(..|.!.<....|
|00000890| 02 b4 00 00 02 b4 00 00 | 00 00 00 04 00 09 00 00 |........|........|
|000008a0| 06 4d 6f 6e 61 63 6f 00 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 04 00 00 04 00 00 00 48 | 00 48 00 00 00 00 02 db |.......H|.H......|
|000008f0| 02 40 ff e7 ff ee 02 ff | 02 52 1f 03 05 28 03 fc |.@......|.R...(..|
|00000900| 00 01 00 00 01 2c 01 2c | 00 00 00 00 0b e7 09 60 |.....,.,|.......`|
|00000910| 01 2c 00 2d 05 a0 5e ec | 00 26 04 01 01 01 00 18 |.,.-..^.|.&......|
|00000920| 00 01 27 0f 00 01 00 01 | 00 00 00 00 00 00 00 00 |..'.....|........|
|00000930| 00 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 01 00 00 02 41 00 | 00 00 00 04 00 09 00 00 |......A.|........|
|00000960| 06 4d 6f 6e 61 63 6f 08 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 04 01 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 20 00 01 00 00 03 3f |........|. .....?|
|000009e0| 00 00 03 53 15 53 6b 65 | 6c 47 65 74 52 65 66 65 |...S.Ske|lGetRefe|
|000009f0| 72 65 6e 63 65 52 65 63 | 74 00 00 00 01 00 00 00 |renceRec|t.......|
|00000a00| 02 7a 00 00 01 7a 00 00 | 00 46 00 4b e3 e4 10 88 |.z...z..|.F.K....|
|00000a10| 00 00 00 1c 00 46 00 01 | 42 42 53 52 00 00 00 12 |.....F..|BBSR....|
|00000a20| 4d 50 53 52 00 00 00 1e | 01 03 ff ff 00 00 00 00 |MPSR....|........|
|00000a30| 00 00 00 00 03 ef ff ff | 00 00 01 56 00 00 00 00 |........|...V....|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+